

#ifndef  RECORD_H
#define  RECORD_H

#include <sstream>

//TODO: extract interface 
class Record {
public:
	Record(long long key, const std::string & value){
		std::ostringstream oss;
		oss << key << ":" << value;
		content = oss.str();
	}
	~Record(){
	}
	size_t length() const {
		return content.size();
	}
	const std::string & str() const{
		return content;
	}
private:
	std::string content;
};


#endif   /* RECORD_H */
